<template>
	<view class="">

		<view style="padding: 30rpx 30rpx 100rpx 30rpx;background: #818DFF;text-align: left;color: #fff;"
			class="u-flex u-row-between">
			<view>
				<view>当前余额</view>
				<view style="font-size: 40rpx;">￥{{info.moneny}}</view>
			</view>
			<view>
				<view>可用佣金</view>
				<view style="font-size: 40rpx;">￥{{info.moneny}}</view>
			</view>
		
		</view>
		<view class=""
			style="background: #fff;border-radius: 60rpx 60rpx  0 0;position: relative;bottom: 50rpx;padding-top: 40rpx;">
			<view class="mode" style="text-align: center;">
				<u-cell-item title="支付宝收款码" value="更改" :border-bottom="false" @click="change(2)"></u-cell-item>

				<view>
					<view style="margin: 40rpx auto;width: 100rpx;">
						<u-image :src="logo" width="100" height="100"></u-image>
					</view>

					<view style="color: #628DFF;">支付宝收款码</view>
				</view>


			</view>

			<view class="mode" style="text-align: center;">
				<u-cell-item title="微信收款码" value="更改" :border-bottom="false" @click="change(1)"></u-cell-item>

				<view>
					<view style="margin: 40rpx auto;width: 100rpx;">
						<u-image :src="logo1" width="100" height="100">

						</u-image>
					</view>

					<view style="color: #628DFF;">微信收款码</view>
				</view>


			</view>
		</view>
		
		<view class="bottomFix">
			<u-button shape="circle"
				:custom-style="{background:'#628DFF',color:'#fff',marginTop:'40rpx',width:'500rpx',marginBottom:'40rpx'}"
				@click="submit">
				保存</u-button>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				disabled: false,
				logo: "/static/logo.png",
				logo1: "/static/logo.png",
				mobile: ""
			}
		},
		methods: {
			change(item) {
				uni.navigateTo({
					url: '../wallet/uptixian?id=' + item
				})
			},
			sumbit() {

				this.$u.post('/api/user/saveInfo', {
					mobile: this.mobile
				}, {}).then(res => {

					this.$u.toast("修改成功")
				}).catch(err => {})

			}

		},
		onLoad() {

		},
		onShow() {
			// this.$u.post('/api/user/information', {

			// }, {}).then(res => {
			// 	var {alipayQr,mobile,wxQr}=res.data;
			// 	this.logo=alipayQr;
			// 	this.logo1=wxQr;
			// 	this.mobile=mobile
			// 	if(mobile){
			// 		this.disabled=true
			// 	}else{
			// 		this.disabled=false
			// 	}

			// }).catch(err => {})
		}
	}
</script>

<style lang="scss">
	.u-input__input {
		background: #F7F7F7;

	}
</style>
